<!DOCTYPE html>
<html class="h-100" lang="en">
<head>
    <meta charset="utf-8">
    <title>登入 - {$config_pub.site_name}</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <!-- Favicon icon -->
    <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
    <link href="/modules/admin/css/login.css" rel="stylesheet">
</head>

<body class="h-100" style="font-family: Microsoft YaHei,PingFang SC;">
<div class="center">
    <div class="head">
        <img src="/modules/admin/images/logo_login.png" alt="" class="logo">
        <i></i>
        <div class="title">
            <h4>- {$config_pub.site_name} -</h4>
            <p>Google身份验证</p>
        </div>
    </div>
    <div class="mt-5 mb-5 login-input layui-form">
        {if $google_code_url}
        <div class="safe_area">
            <img src="/layuiadmin/layui/css/modules/layer/default/loading-2.gif" lay-src="{$google_code_url}" id="gcodeUrl">
        </div>
        {/if}
        <div class="input">
            <img src="" alt="">
            <input type="text" name="googlecode" class="form-control" id="gCode" placeholder="请输入Google验证码" lay-verify="required">
        </div>

        <button class="submit-btn layui-btn" lay-submit lay-filter="LAY-user-gcodecheck-submit" id="submit">立即验证</button>
    </div>
</div>


<script src="/layuiadmin/layui/layui.js"></script>
<script src="/layuiadmin/layui/layui.2.6.8.js"></script>
<script>
    layui.config({
        base: '/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'login'], function () {
        layui.use('flow', function () {
            var flow = layui.flow;
            //当你执行这样一个方法时，即对页面中的全部带有 lay-src 的 img 元素开启了懒加载（当然你也可以指定相关 img）
            flow.lazyimg();
        });
    });
</script>
</body>
</html>